Q: How many properties will an equivalent relationship satisfy?
Solution: An equivalent relationship will satisfy three properties – reflexive, symmetric and transitive.
Q: A relation R on a set S, defined as x R y if and only if y R x. This is an example of?
Solution: A symmetric property in an equivalence relation is defined as x R y if and only y R x.
Q: Electrical connectivity is an example of equivalence relation.
Solution: Electrical connectivity is reflexive, symmetric and also transitive. Hence, electrical connectivity is an equivalence relation.
Q: What is the worst case efficiency for a path compression algorithm?
Solution: The worst case efficiency for a path compression algorithm is mathematically found to be O(M log N).
Q: Path Compression algorithm performs in which of the following operations?
Solution: Path compression algorithm is performed during find operation and is independent of the strategy used to perform unions.
Q: What is the definition for Ackermann’s function?
Solution: The Ackermann’s function is defined as A(1,i) = i+1 for i>=1. This form in text grows faster and the inverse is slower.
Q: ___________ is one of the earliest forms of a self-adjustment strategy used in splay trees, skew heaps.
Solution: Path compression is one of the earliest forms of self-adjustment used in extremely important strategies using theoretical explanations.
Q: What is the depth of any tree if the union operation is performed by height?
Solution: If the Unions are performed by height, the depth of any tree is calculated to be O(log N).
Q: What is the value for the number of nodes of rank r?
Solution: Each node of a rank r is the root of a subtree of at least 2r. Therefore, there are at most N/2r disjoint subtrees.
Q: What is the worst-case running time of unions done by size and path compression?
Solution: The worst case running time of a union operation done by size and path compression is mathematically found to be O(M logN).
You Have Score    | /10 |